package com.yanqu.road.entity.log.cross;

import com.yanqu.road.entity.FieldTypeAnnotation;
import com.yanqu.road.entity.log.ServerBaseLog;

@FieldTypeAnnotation(tableName = "t_l_ck_union_wealth", desc = "商会财富变更", autoSave = true, uploadCk = true, isCross = true)
public class LogUnionWealth extends ServerBaseLog {
    @FieldTypeAnnotation(desc = "用户id")
    private long userId;
    @FieldTypeAnnotation(desc = "商会id", isIndex = true)
    private String unionUid;
    @FieldTypeAnnotation(desc = "是否获得")
    private boolean isGet;
    @FieldTypeAnnotation(desc = "变更值")
    private long value;
    @FieldTypeAnnotation(desc = "原始值")
    private long originalValue;
    @FieldTypeAnnotation(desc = "当前值")
    private long nowValue;
    @FieldTypeAnnotation(desc = "son途径")
    private int son;

    public LogUnionWealth(long userId, String unionUid, boolean isGet, long value, long originalValue, long nowValue, int son) {
        this.userId = userId;
        this.unionUid = unionUid;
        this.isGet = isGet;
        this.value = value;
        this.originalValue = originalValue;
        this.nowValue = nowValue;
        this.son = son;
    }

    public long getUserId() {
        return userId;
    }
}
